<template>
  <div id="app">
    <Header/>
    <!-- 路由组件的出口 -->
    <router-view></router-view>
    <!-- 在Home、Search中显示，在登陆、注册中不显示 -->
    <Footer v-show="$route.meta.showFooter"/>
  </div>
</template>

<script>
import Header from './components/Header/Header.vue'
import Footer from './components/Footer/Footer.vue'

export default {
  name: 'App',
  components: {Header,Footer},
  mounted(){
    this.$store.dispatch("categoryList");

  }

}
</script>

<style>

</style>
